<%@ include file = "/common/ini.jsp"%> 
<%@ include file = "/common/_vr.jsp"%> 
<%
    // 定义名称
    String title = "新增实体名";
    String remark = "";
%>
<script>
    function submitData()
    {
        detailForm.serviceURL.value = "modulename.modelname.NewModelNameService";
        detailForm.submit();
    }
    function reset()
    {
        <%
        if(vr.isAllValidated())    
        {
            %>
            detailForm.id.value = "id";
            detailForm.code.value = "code";
            detailForm.name.value = "name";
            detailForm.type.value = "type";
            detailForm.parentId.value = "parentId<%= (new Date()).getTime()%>";
            detailForm.remark.value = "";
            <%
        }
        else
        {
            %>
            detailForm.id.value = "<%= request.getParameter("id")%>";
            detailForm.code.value = "<%= request.getParameter("code")%>";
            detailForm.name.value = "<%= request.getParameter("name")%>";
            detailForm.type.value = "<%= request.getParameter("type")%>";
            detailForm.parentId.value = "<%= request.getParameter("parentId")%>";
            <% remark = request.getParameter("remark");%>
            detailForm.remark.value = tempRemark.value;
            <%
        }    
        %>
    }
</script>
<%@ include file = "/common/detail/_OnForm.jsp"%> 
<%@ include file = "_detail.jsp"%> 
<%@ include file = "/common/detail/_UnderForm.jsp"%> 
